# Contributor: Thomas Deutsch <thomas@tuxpeople.org>
# Maintainer: Thomas Deutsch <thomas@tuxpeople.org>
pkgname=lazydocker
pkgver=0.23.3
pkgrel=2
pkgdesc="Simple terminal UI for both docker and docker-compose"
url="https://github.com/jesseduffield/lazydocker"
arch="all"
license="MIT"
makedepends="go"
options="chmod-clean"
source="$pkgname-$pkgver.tar.gz::https://github.com/jesseduffield/lazydocker/archive/v$pkgver.tar.gz"

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	go build
}

check() {
	go test ./...
}

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/lazydocker
}

sha512sums="
355a95dfdc1de37f4067e44aa70c8b8bdcfad25cc758940b24cff0148ae2b8cd68c0a9b97f1f43f9a9129bc0a25b8823c76e3510843e5298d6523bf56fbb9690  lazydocker-0.23.3.tar.gz
"
